{template 'web/common/common'}
{template 'web/goods/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            产品肥料使用编辑
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/goods',array('m'=>'kundian_farm','op'=>'fumier_edit_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label class="col-sm-2 control-label">肥料名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="name" id="name" value="{$list['name']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">使用面积</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control"  name="area" id="area" value="{$list['area']}">

                </div>
                <span>㎡</span>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">使用用量</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control"  name="consommation" id="consommation" value="{$list['consommation']}" placeholder="1公斤">
                    <span style="color: gray;">单位自定义</span>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">使用时间</label>
                <div class="col-sm-8">
                    {if $list['use_time']!=0}
                    <input type="date" class="form-control"  name="use_time" value="<?php echo date('Y-m-d',$list['use_time']);?>">
                    {else}
                    <input type="date" class="form-control"  name="use_time" value="">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input type="hidden" value="{$list['id']}" name="id"/>
                    <input type="hidden" value="{$trace_id}" name="trace_id"/>
                    <input type="submit" name="submit" class="btn btn-default">
                    <a class="btn btn-default" href="{url 'site/entry/goods',array('m'=>'kundian_farm','op'=>'fumier_list','id'=>$trace_id)}">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
